package com.tj.bo.common.conf.util;

import java.util.regex.Pattern;

/**
 * Created by linchengyu on 17/4/12.
 */
public class EmailUtils {

    private static final Pattern EMAIL_PATTERN = Pattern.compile("^[A-Za-z0-9]+([_\\.][A-Za-z0-9]+)*@([A-Za-z0-9\\-]+\\.)+[A-Za-z]{2,6}$");
    
    public static boolean isEmail(String phone) {
        return EMAIL_PATTERN.matcher(phone).matches();
    }
}
